package qq.android.wan.qq.utils;

import android.content.Context;

/**
 * Created by mac on 2016/3/8.
 */
public class MyUtil {
    /**
     * 获取通知栏的高度
     * @param context
     * @return
     */
    public static int getTopBarHeight(Context context){
        int status_id=context.getResources().getIdentifier("status_bar_height", "dimen", "android");
        return context.getResources().getDimensionPixelSize(status_id);
    }
}
